<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>栅格系统使用2</title>
    <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css">
    <style>
        .container .row:nth-child(1){
            background-color:pink;
        }
        
        [class^='col']{
            border:1px solid #ccc;
            /* 可以去除默认列的padding:15px */
            /* padding: 0; */
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="row" >
            <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">1</div>
            <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">2</div>
            <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">3</div>
            <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">4</div>    
        </div>
    </div>
</body>
</html>